//
//  UIDevice+QWExtension.h
//  WJCommon-master
//
//  Created by Yunhai.Wu on 16/1/5.
//  Copyright © 2016年 WJ. All rights reserved.
//

#import <UIKit/UIKit.h>

#define QW_DEVICE_OS_VERSION                [UIDevice osVersion]
#define QW_DEVICE_IS_DEVICE_PHONE           [UIDevice isDevicePhone]
#define QW_DEVICE_IS_PHONE                  [UIDevice isPhone]
#define QW_DEVICE_IS_POD                    [UIDevice isPod]
#define QW_DEVICE_IS_TOUCH                  [UIDevice isTouch]
#define QW_DEVICE_IS_PAD                    [UIDevice isPad]

@interface UIDevice (QWExtension)

/**
 *  iOS 系统版本
 */
+(NSString*) osVersion;

/**
 *  是否为手机设备设备(iPhone、iPod、iTouch)
 */
+ (BOOL)isDevicePhone;

/**
 *  是否为iPhone
 */
+ (BOOL) isPhone;

/**
 *  是否为iPod
 */
+ (BOOL) isPod;

/**
 *  是否为iTouch
 */
+ (BOOL) isTouch;

/**
 *  是否为iPad设备
 */
+ (BOOL)isPad;

@end
